<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>专业级四旋翼无人机 - 突破性能极限</title>
    <meta
      name="description"
      content="专业级四旋翼无人机，配备4K超高清摄像、60分钟续航、智能避障系统。适用于婚礼摄影、地产航拍、新闻纪实等专业场景。"
    />
    <meta
      name="keywords"
      content="无人机,四旋翼,航拍,4K摄像,专业摄影,智能避障"
    />
    <meta name="author" content="DroneX" />
    <meta name="robots" content="index, follow" />
    <style>
      :root {
        --primary-color: #00a8ff;
        --secondary-color: #192a56;
        --accent-color: #ffa502;
        --text-color: #2f3640;
        --light-bg: #f5f6fa;
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        font-family: "Helvetica Neue", Arial, sans-serif;
        line-height: 1.6;
        color: var(--text-color);
      }

      .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
      }

      h2 {
        text-align: center;
        margin-bottom: 2rem;
      }

      /* 轮播图样式 */
      .hero-carousel {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        overflow: hidden;
        background: var(--secondary-color);
      }

      .carousel-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 300%; /* 3张图片的总宽度 */
        height: 100%;
        display: flex;
        transition: transform 0.5s ease-in-out;
      }

      .carousel-slide {
        width: 33.333%; /* 每张图片占总宽度的1/3 */
        height: 100%;
      }

      .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
      }

      .carousel-nav {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 3;
      }

      .carousel-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: background 0.3s ease;
      }

      .carousel-dot.active {
        background: white;
      }

      .carousel-button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 3;
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s ease;
      }

      .carousel-button:hover {
        background: rgba(0, 0, 0, 0.8);
      }

      .carousel-prev {
        left: 20px;
      }

      .carousel-next {
        right: 20px;
      }

      .hero-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: white;
        z-index: 2;
        width: 90%;
        max-width: 800px;
      }

      .hero-content h1 {
        font-size: 3.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
      }

      .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
      }

      /* 特性展示样式 */
      .features {
        padding: 80px 0;
        background: var(--light-bg);
      }

      .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        margin-top: 40px;
      }

      .feature-card {
        background: white;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
      }

      .feature-card:hover {
        transform: translateY(-5px);
      }

      .feature-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
      }

      .feature-content {
        padding: 20px;
      }

      /* 视频展示样式 */
      .video-section {
        padding: 80px 0;
        background: var(--secondary-color);
        color: white;
      }

      .video-container {
        margin-top: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
      }

      .video-container video {
        max-width: 100%;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      }

      /* 详细介绍样式 */
      .details {
        padding: 80px 0;
      }

      .detail-section {
        margin-bottom: 60px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
      }

      .detail-section:nth-child(even) {
        direction: rtl;
      }

      .detail-section img {
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
      }

      .detail-content {
        direction: ltr;
        padding: 20px;
      }

      /* 按钮样式 */
      .cta-button {
        display: inline-block;
        padding: 15px 40px;
        background: var(--accent-color);
        color: white;
        text-decoration: none;
        border-radius: 30px;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
        overflow: hidden;
        transition: transform 0.3s ease;
        animation: pulse 2s infinite;
      }

      .cta-button:hover {
        transform: scale(1.05);
      }

      /* 悬浮金币箱按钮 */
      .floating-coin-box {
        position: fixed;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1000;
        width: 100px;
        height: 100px;
        cursor: pointer;
      }

      .floating-coin-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }

      /* 点击手动画 */
      .clicking-hand {
        position: absolute;
        width: 60px;
        height: 60px;
        background: url(resources/clicking-hand.png) center/contain no-repeat;
        right: 31%;
        bottom: 29%;
        transform: translate(50%, 50%);
        animation: clicking 0.5s infinite;
        pointer-events: none;
        z-index: 2;
      }

      @keyframes clicking {
        0% {
          transform: translate(50%, 50%) scale(1);
          opacity: 1;
        }
        50% {
          transform: translate(50%, 50%) scale(0.8);
          opacity: 0.95;
        }
        100% {
          transform: translate(50%, 50%) scale(1);
          opacity: 1;
        }
      }

      @keyframes pulse {
        0% {
          box-shadow: 0 0 0 0 rgba(255, 165, 2, 0.7);
        }
        70% {
          box-shadow: 0 0 0 15px rgba(255, 165, 2, 0);
        }
        100% {
          box-shadow: 0 0 0 0 rgba(255, 165, 2, 0);
        }
      }

      /* 响应式设计 */
      @media (max-width: 1024px) {
        .hero-content h1 {
          font-size: 3rem;
          margin-bottom: 1.2rem;
        }
        .hero-content p {
          font-size: 1.1rem;
          margin-bottom: 1.8rem;
        }
      }

      @media (max-width: 768px) {
        .hero-content h1 {
          font-size: 2.2rem;
          line-height: 1.3;
          margin-bottom: 1rem;
        }
        .hero-content p {
          font-size: 1rem;
          margin-bottom: 1.5rem;
        }
        .detail-section {
          grid-template-columns: 1fr;
          gap: 20px;
        }

        .features-grid {
          grid-template-columns: 1fr;
        }

        .container {
          padding: 0 15px;
        }

        .floating-coin-box {
          width: 80px;
          height: 80px;
          right: 10px;
        }
      }

      @media (max-width: 480px) {
        .hero-content h1 {
          font-size: 1.8rem;
          line-height: 1.4;
          margin-bottom: 0.8rem;
        }
        .hero-content p {
          font-size: 0.9rem;
          margin-bottom: 1.2rem;
        }
        .cta-button {
          padding: 12px 30px;
          font-size: 0.9rem;
        }
      }
    </style>
  </head>
  <body>
    <!-- 悬浮金币箱按钮 -->
    <a href="https://www.baidu.com" class="floating-coin-box">
      <img src="resources/coin-box.png" alt="金币箱" />
      <div class="clicking-hand"></div>
    </a>

    <!-- 轮播图部分 -->
    <section class="hero-carousel">
      <div class="carousel-container">
        <div class="carousel-slide">
          <img src="resources/drone-1.jpg" alt="专业级四旋翼无人机" />
        </div>
        <div class="carousel-slide">
          <img src="resources/detail-1.jpg" alt="专业摄影系统" />
        </div>
        <div class="carousel-slide">
          <img src="resources/detail-2.jpg" alt="智能飞行系统" />
        </div>
      </div>
      <div class="carousel-nav">
        <div class="carousel-dot active"></div>
        <div class="carousel-dot"></div>
        <div class="carousel-dot"></div>
      </div>
      <button class="carousel-button carousel-prev">❮</button>
      <button class="carousel-button carousel-next">❯</button>
      <div class="hero-content">
        <h1 data-editable="hero-title" data-label="主标题">
          突破性能极限的专业级无人机
        </h1>
        <p data-editable="hero-subtitle" data-label="副标题">
          4K超高清摄像 · 60分钟续航 · 智能避障
        </p>
        <a
          href="https://www.baidu.com"
          class="cta-button"
          data-editable="button-1"
          data-label="轮播图按钮文字"
          >立即购买</a
        >
      </div>
    </section>

    <script>
      // 轮播图功能
      document.addEventListener("DOMContentLoaded", function () {
        const container = document.querySelector(".carousel-container");
        const slides = document.querySelectorAll(".carousel-slide");
        const dots = document.querySelectorAll(".carousel-dot");
        const prevButton = document.querySelector(".carousel-prev");
        const nextButton = document.querySelector(".carousel-next");
        let currentSlide = 0;
        const totalSlides = slides.length;
        let autoSlideInterval;

        function updateCarousel() {
          const offset = currentSlide * 33.333; // 每次移动33.333%的宽度
          container.style.transform = `translateX(-${offset}%)`;
          dots.forEach((dot, index) => {
            dot.classList.toggle("active", index === currentSlide);
          });
        }

        function nextSlide() {
          currentSlide = (currentSlide + 1) % totalSlides;
          updateCarousel();
        }

        function prevSlide() {
          currentSlide = (currentSlide - 1 + totalSlides) % totalSlides;
          updateCarousel();
        }

        // 点击导航点切换轮播图
        dots.forEach((dot, index) => {
          dot.addEventListener("click", () => {
            currentSlide = index;
            updateCarousel();
            // 重置自动轮播计时器
            clearInterval(autoSlideInterval);
            autoSlideInterval = setInterval(nextSlide, 5000);
          });
        });

        // 点击按钮切换轮播图
        prevButton.addEventListener("click", () => {
          prevSlide();
          // 重置自动轮播计时器
          clearInterval(autoSlideInterval);
          autoSlideInterval = setInterval(nextSlide, 5000);
        });

        nextButton.addEventListener("click", () => {
          nextSlide();
          // 重置自动轮播计时器
          clearInterval(autoSlideInterval);
          autoSlideInterval = setInterval(nextSlide, 5000);
        });

        // 初始化轮播图位置
        updateCarousel();

        // 启动自动轮播
        autoSlideInterval = setInterval(nextSlide, 5000);
      });
    </script>

    <!-- 特性展示部分 -->
    <section class="features">
      <div class="container">
        <h2 data-editable="section1-title" data-label="区域1标题">
          革命性的技术突破
        </h2>
        <div class="features-grid">
          <div class="feature-card">
            <img src="resources/feature-1.jpg" alt="相机技术" />
            <div class="feature-content">
              <h3 data-editable="feature1-title" data-label="特性1标题">
                4K超高清摄像系统
              </h3>
              <p data-editable="feature1-desc" data-label="特性1描述">
                配备索尼最新图像传感器，支持4K/60fps视频录制，让每一个画面都清晰震撼。
              </p>
            </div>
          </div>
          <div class="feature-card">
            <img src="resources/feature-2.jpg" alt="遥控系统" />
            <div class="feature-content">
              <h3 data-editable="feature2-title" data-label="特性2标题">
                智能遥控系统
              </h3>
              <p data-editable="feature2-desc" data-label="特性2描述">
                10公里图传距离，零延迟控制，配备5.5英寸高亮显示屏，让飞行体验更加流畅。
              </p>
            </div>
          </div>
          <div class="feature-card">
            <img src="resources/feature-3.jpg" alt="电池技术" />
            <div class="feature-content">
              <h3 data-editable="feature3-title" data-label="特性3标题">
                创新电池技术
              </h3>
              <p data-editable="feature3-desc" data-label="特性3描述">
                智能电池管理系统，单次充电可持续飞行60分钟，让你的创作不再受限。
              </p>
            </div>
          </div>
        </div>
        <div style="text-align: center; margin-top: 40px">
          <a
            href="https://www.baidu.com"
            class="cta-button"
            data-editable="button-2"
            data-label="区域1按钮文字"
            >了解更多</a
          >
        </div>
      </div>
    </section>

    <!-- 视频展示部分 -->
    <section class="video-section">
      <div class="container">
        <h2 data-editable="section2-title" data-label="视频区域标题">
          震撼航拍体验
        </h2>
        <div class="video-container">
          <video controls="" poster="resources/drone-video_thumb.jpg">
            <source src="resources/drone-video.mp4" type="video/mp4" />
            您的浏览器不支持视频播放。
          </video>
        </div>
      </div>
    </section>

    <!-- 详细介绍部分 -->
    <section class="details">
      <div class="container">
        <div class="detail-section">
          <img src="resources/detail-1.jpg" alt="专业摄影" />
          <div class="detail-content">
            <h2 data-editable="detail1-title" data-label="详情1标题">
              专业级摄影体验
            </h2>
            <p data-editable="detail1-desc" data-label="详情1描述">
              采用全新一代图像处理技术，支持RAW格式拍摄，14档动态范围，让你捕捉每一个精彩瞬间。配备3轴云台防抖，即使在强风环境下也能保持画面稳定。
            </p>
          </div>
        </div>
        <div class="detail-section">
          <img src="resources/detail-2.jpg" alt="智能飞行" />
          <div class="detail-content">
            <h2 data-editable="detail2-title" data-label="详情2标题">
              智能飞行系统
            </h2>
            <p data-editable="detail2-desc" data-label="详情2描述">
              全方位避障系统，8个高精度视觉传感器，实时构建3D环境地图。支持智能跟随、环绕拍摄、定点悬停等多种智能飞行模式，让航拍更加简单。
            </p>
          </div>
        </div>
        <div class="detail-section">
          <img src="resources/detail-3.jpg" alt="专业应用" />
          <div class="detail-content">
            <h2 data-editable="detail3-title" data-label="详情3标题">
              广泛的专业应用
            </h2>
            <p data-editable="detail3-desc" data-label="详情3描述">
              从婚礼摄影到地产航拍，从新闻纪实到影视制作，我们的无人机能够满足各种专业场景的需求。即插即用的配件系统，让你的创作更加灵活。
            </p>
          </div>
        </div>
        <div style="text-align: center; margin-top: 40px">
          <a
            href="https://www.baidu.com"
            class="cta-button"
            data-editable="button-3"
            data-label="底部按钮文字"
            >立即购买</a
          >
        </div>
      </div>
    </section>

    <!-- 动态路径转换 -->
    <script>
      // 根据环境设置资源路径
      (function () {
        // 判断当前环境模式
        // 动态获取模板目录名称
        const pathSegments = window.location.pathname.split("/");
        const templateDir = pathSegments[2] || "drone-ads";
        const isTemplatePreview = window.location.hostname === "www.jl25.net";
        const basePath = isTemplatePreview
          ? `http://www.jl25.net/templates/${templateDir}/`
          : `http://${window.location.hostname.split(".")[0]}.jl25.net/`;

        // 转换所有媒体资源路径
        function convertMediaPaths() {
          // 处理图片元素
          document.querySelectorAll("img").forEach((img) => {
            let src = img.getAttribute("src");
            if (src.startsWith("http") || src.startsWith("https")) {
              // Extract the path after the domain
              let url = new URL(src);
              src = basePath + url.pathname;
            } else {
              src = basePath + src;
            }
            img.src = src;
          });

          // 处理video元素的poster属性
          document.querySelectorAll("video[poster]").forEach((video) => {
            let posterPath = video.getAttribute("poster");
            if (
              posterPath.startsWith("http") ||
              posterPath.startsWith("https")
            ) {
              let url = new URL(posterPath);
              posterPath = basePath + url.pathname;
            } else {
              posterPath = basePath + posterPath;
            }
            video.setAttribute("poster", posterPath);
          });

          // 处理source元素的src
          document.querySelectorAll("source").forEach((source) => {
            let src = source.getAttribute("src");
            if (src.startsWith("http") || src.startsWith("https")) {
              let url = new URL(src);
              src = basePath + url.pathname;
            } else {
              src = basePath + src;
            }
            source.src = src;
          });

          // 处理CSS背景图
          const clickingHand = document.querySelector(".clicking-hand");
          if (clickingHand) {
            const bgUrl = clickingHand.style.backgroundImage
              .replace('url("', "")
              .replace('")', "");
            if (bgUrl.startsWith("http") || bgUrl.startsWith("https")) {
              let url = new URL(bgUrl);
              bgUrl = basePath + url.pathname;
            } else {
              bgUrl = basePath + bgUrl;
            }
            clickingHand.style.backgroundImage = `url("${bgUrl}")`;
          }
        }

        // DOM加载完成后执行
        document.addEventListener("DOMContentLoaded", convertMediaPaths);
      })();
    </script>

    <!-- 统计代码 -->
    <script>
      // 获取当前页面的子域名
      function getSubdomain() {
        const hostname = window.location.hostname;
        const parts = hostname.split(".");
        return parts.length > 2 ? parts[0] : "";
      }

      // 记录页面访问
      function recordVisit() {
        const subdomain = getSubdomain();
        if (!subdomain) return;

        fetch("/includes/record_visit.php", {
          method: "POST",
          headers: {
            "Content-Type": "application/x-www-form-urlencoded",
          },
          body: `page_id=${encodeURIComponent(subdomain)}`,
        });
      }

      // 记录点击事件
      function recordClick(element) {
        const subdomain = getSubdomain();
        if (!subdomain) return;

        // 获取元素的标识信息
        let elementId = "";
        if (element.classList.contains("cta-button")) {
          elementId = "cta-button:" + element.textContent.trim();
        } else if (element.classList.contains("floating-coin-box")) {
          elementId = "floating-coin-box";
        } else if (element.classList.contains("carousel-button")) {
          elementId = element.classList.contains("carousel-prev")
            ? "carousel-prev"
            : "carousel-next";
        } else if (element.classList.contains("carousel-dot")) {
          elementId =
            "carousel-dot:" +
            Array.from(element.parentNode.children).indexOf(element);
        } else {
          elementId =
            element.id ||
            element.getAttribute("data-click-id") ||
            (element.href
              ? "link:" + element.href
              : element.textContent.trim());
        }
          headers: {
            "Content-Type": "application/x-www-form-urlencoded",
          },
          body: `page_id=${encodeURIComponent(
            subdomain
          )}&element_id=${encodeURIComponent(elementId)}`,
        });
      }

      // 页面加载完成后记录访问
      document.addEventListener("DOMContentLoaded", function () {
        recordVisit();

        // 为所有可点击元素添加点击统计
        const clickableElements = [
          ...document.querySelectorAll("a"), // 所有链接
          ...document.querySelectorAll("button"), // 所有按钮
          ...document.querySelectorAll(".carousel-dot"), // 轮播图导航点
          ...document.querySelectorAll(".floating-coin-box"), // 悬浮金币箱
          ...document.querySelectorAll(".cta-button"), // CTA按钮
        ];

        clickableElements.forEach((element) => {
          element.addEventListener("click", function (e) {
            // 记录点击事件
            recordClick(this);
          });
        });
      });
    </script>
  </body>
</html>
